import os

from flask import Flask
from flask import send_file

app = Flask(__name__)


@app.route('/<path:file_name>')
def return_file(file_name):
    dir_ = os.getcwd()
    file_path = dir_ + '/' + file_name
    try :
        return send_file(file_path)
    except:
        return file_path


if __name__ == '__main__':
    config = dict(
        debug=True,
        host='0.0.0.0',
        port=8000,
    )
    app.run(**config)